Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support list of filters + tests #39

Merged
merged 1 commit into from
Mar 14, 2015
Merged

Support list of filters + tests #39

merged 1 commit into from
Mar 14, 2015

Conversation

yannmh
Copy link
Member

@yannmh yannmh commented Feb 3, 2015

Fix #20

*/

@SuppressWarnings("unchecked")
public Filter(Object filter) {
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's a weird indentation

@yannmh yannmh force-pushed the yann/jmx-list-filters branch from 7d076ba to 2569124 Compare March 3, 2015 22:02
@yannmh
Copy link
Member Author

yannmh commented Mar 3, 2015

Rebased on JMXFetch 0.4.1

if (isEmptyBeanName()){
return new ArrayList<String>();
}
final Object beanNames = (filter.get("bean") != null)?filter.get("bean"):filter.get("bean_name");
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nitpick but you should add spaces when using ternary conditions. It would be more readable

Rebased on JMXFetch 0.4.1
@yannmh yannmh force-pushed the yann/jmx-list-filters branch from 2569124 to 8d56c6a Compare March 14, 2015 17:03
@yannmh yannmh assigned yannmh and unassigned remh Mar 14, 2015
@yannmh yannmh added this to the 5.3.0 milestone Mar 14, 2015
yannmh added a commit that referenced this pull request Mar 14, 2015
@yannmh yannmh merged commit 136fdd8 into master Mar 14, 2015
@yannmh yannmh deleted the yann/jmx-list-filters branch March 14, 2015 18:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Be more flexible on configuration
2 participants